package com.heima.behavior.controller.v1;

import com.heima.apis.BehaviorControllerApi;
import com.heima.behavior.service.BehaviorService;
import com.heima.model.behavior.dtos.ShowBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author marui
 * @date 21:01 2020/7/18
 * @since 1.0
 * 用户行为
 */
@RestController
@RequestMapping("/api/v1/behavior")
public class BehaviorController implements BehaviorControllerApi {

    @Resource
    private BehaviorService behaviorService;

    @Override
    @PostMapping("/show_behavior")
    public ResponseResult saveShowBehavior(ShowBehaviorDto dto) {
        return behaviorService.saveShowBehavior(dto);
    }
}
